using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class EmojiUploadInfoResp : GeneratedMessageLite<EmojiUploadInfoResp, EmojiUploadInfoResp.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<EmojiUploadInfoResp, EmojiUploadInfoResp.Builder>
		{
			private bool resultIsReadOnly;
			private EmojiUploadInfoResp result;
			protected override EmojiUploadInfoResp.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override EmojiUploadInfoResp MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override EmojiUploadInfoResp DefaultInstanceForType
			{
				get
				{
					return EmojiUploadInfoResp.DefaultInstance;
				}
			}
			public int Ret
			{
				get
				{
					return this.result.Ret;
				}
				set
				{
					this.SetRet(value);
				}
			}
			public int StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public int TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public string MD5
			{
				get
				{
					return this.result.MD5;
				}
				set
				{
					this.SetMD5(value);
				}
			}
			public uint MsgID
			{
				get
				{
					return this.result.MsgID;
				}
				set
				{
					this.SetMsgID(value);
				}
			}
			public Builder()
			{
				this.result = EmojiUploadInfoResp.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(EmojiUploadInfoResp cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private EmojiUploadInfoResp PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					EmojiUploadInfoResp other = this.result;
					this.result = new EmojiUploadInfoResp();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override EmojiUploadInfoResp.Builder Clear()
			{
				this.result = EmojiUploadInfoResp.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override EmojiUploadInfoResp.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new EmojiUploadInfoResp.Builder(this.result);
				}
				return new EmojiUploadInfoResp.Builder().MergeFrom(this.result);
			}
			public override EmojiUploadInfoResp BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override EmojiUploadInfoResp.Builder MergeFrom(IMessageLite other)
			{
				if (other is EmojiUploadInfoResp)
				{
					return this.MergeFrom((EmojiUploadInfoResp)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override EmojiUploadInfoResp.Builder MergeFrom(EmojiUploadInfoResp other)
			{
				return this;
			}
			public override EmojiUploadInfoResp.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override EmojiUploadInfoResp.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(EmojiUploadInfoResp._emojiUploadInfoRespFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = EmojiUploadInfoResp._emojiUploadInfoRespFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 16u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasRet = input.ReadInt32(ref this.result.ret_);
							continue;
						}
						if (num3 == 16u)
						{
							this.result.hasStartPos = input.ReadInt32(ref this.result.startPos_);
							continue;
						}
					}
					else
					{
						if (num3 == 24u)
						{
							this.result.hasTotalLen = input.ReadInt32(ref this.result.totalLen_);
							continue;
						}
						if (num3 == 34u)
						{
							this.result.hasMD5 = input.ReadString(ref this.result.mD5_);
							continue;
						}
						if (num3 == 40u)
						{
							this.result.hasMsgID = input.ReadUInt32(ref this.result.msgID_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public EmojiUploadInfoResp.Builder SetRet(int value)
			{
				this.PrepareBuilder();
				this.result.hasRet = true;
				this.result.ret_ = value;
				return this;
			}
			public EmojiUploadInfoResp.Builder ClearRet()
			{
				this.PrepareBuilder();
				this.result.hasRet = false;
				this.result.ret_ = 0;
				return this;
			}
			public EmojiUploadInfoResp.Builder SetStartPos(int value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public EmojiUploadInfoResp.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0;
				return this;
			}
			public EmojiUploadInfoResp.Builder SetTotalLen(int value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public EmojiUploadInfoResp.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0;
				return this;
			}
			public EmojiUploadInfoResp.Builder SetMD5(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMD5 = true;
				this.result.mD5_ = value;
				return this;
			}
			public EmojiUploadInfoResp.Builder ClearMD5()
			{
				this.PrepareBuilder();
				this.result.hasMD5 = false;
				this.result.mD5_ = "";
				return this;
			}
			public EmojiUploadInfoResp.Builder SetMsgID(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMsgID = true;
				this.result.msgID_ = value;
				return this;
			}
			public EmojiUploadInfoResp.Builder ClearMsgID()
			{
				this.PrepareBuilder();
				this.result.hasMsgID = false;
				this.result.msgID_ = 0u;
				return this;
			}
		}
		public const int RetFieldNumber = 1;
		public const int StartPosFieldNumber = 2;
		public const int TotalLenFieldNumber = 3;
		public const int MD5FieldNumber = 4;
		public const int MsgIDFieldNumber = 5;
		private static readonly EmojiUploadInfoResp defaultInstance;
		private static readonly string[] _emojiUploadInfoRespFieldNames;
		private static readonly uint[] _emojiUploadInfoRespFieldTags;
		private bool hasRet;
		private int ret_;
		private bool hasStartPos;
		private int startPos_;
		private bool hasTotalLen;
		private int totalLen_;
		private bool hasMD5;
		private string mD5_ = "";
		private bool hasMsgID;
		private uint msgID_;
		private int memoizedSerializedSize = -1;
		public static EmojiUploadInfoResp DefaultInstance
		{
			get
			{
				return EmojiUploadInfoResp.defaultInstance;
			}
		}
		public override EmojiUploadInfoResp DefaultInstanceForType
		{
			get
			{
				return EmojiUploadInfoResp.DefaultInstance;
			}
		}
		protected override EmojiUploadInfoResp ThisMessage
		{
			get
			{
				return this;
			}
		}
		public int Ret
		{
			get
			{
				return this.ret_;
			}
		}
		public int StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public int TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public string MD5
		{
			get
			{
				return this.mD5_;
			}
		}
		public uint MsgID
		{
			get
			{
				return this.msgID_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasRet && this.hasStartPos && this.hasTotalLen && this.hasMsgID;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasRet)
				{
					num += CodedOutputStream.ComputeInt32Size(1, this.Ret);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.StartPos);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeInt32Size(3, this.TotalLen);
				}
				if (this.hasMD5)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.MD5);
				}
				if (this.hasMsgID)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.MsgID);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private EmojiUploadInfoResp()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] emojiUploadInfoRespFieldNames = EmojiUploadInfoResp._emojiUploadInfoRespFieldNames;
			if (this.hasRet)
			{
				output.WriteInt32(1, emojiUploadInfoRespFieldNames[2], this.Ret);
			}
			if (this.hasStartPos)
			{
				output.WriteInt32(2, emojiUploadInfoRespFieldNames[3], this.StartPos);
			}
			if (this.hasTotalLen)
			{
				output.WriteInt32(3, emojiUploadInfoRespFieldNames[4], this.TotalLen);
			}
			if (this.hasMD5)
			{
				output.WriteString(4, emojiUploadInfoRespFieldNames[0], this.MD5);
			}
			if (this.hasMsgID)
			{
				output.WriteUInt32(5, emojiUploadInfoRespFieldNames[1], this.MsgID);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasRet)
			{
				num ^= this.ret_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasMD5)
			{
				num ^= this.mD5_.GetHashCode();
			}
			if (this.hasMsgID)
			{
				num ^= this.msgID_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			EmojiUploadInfoResp emojiUploadInfoResp = value as EmojiUploadInfoResp;
			return emojiUploadInfoResp != null && (this.hasRet == emojiUploadInfoResp.hasRet && (!this.hasRet || this.ret_.Equals(emojiUploadInfoResp.ret_))) && (this.hasStartPos == emojiUploadInfoResp.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(emojiUploadInfoResp.startPos_))) && (this.hasTotalLen == emojiUploadInfoResp.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(emojiUploadInfoResp.totalLen_))) && (this.hasMD5 == emojiUploadInfoResp.hasMD5 && (!this.hasMD5 || this.mD5_.Equals(emojiUploadInfoResp.mD5_))) && (this.hasMsgID == emojiUploadInfoResp.hasMsgID && (!this.hasMsgID || this.msgID_.Equals(emojiUploadInfoResp.msgID_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<EmojiUploadInfoResp, EmojiUploadInfoResp.Builder>.PrintField("Ret", this.hasRet, this.ret_, writer);
			GeneratedMessageLite<EmojiUploadInfoResp, EmojiUploadInfoResp.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<EmojiUploadInfoResp, EmojiUploadInfoResp.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<EmojiUploadInfoResp, EmojiUploadInfoResp.Builder>.PrintField("MD5", this.hasMD5, this.mD5_, writer);
			GeneratedMessageLite<EmojiUploadInfoResp, EmojiUploadInfoResp.Builder>.PrintField("MsgID", this.hasMsgID, this.msgID_, writer);
		}
		public static EmojiUploadInfoResp ParseFrom(byte[] data)
		{
			return EmojiUploadInfoResp.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private EmojiUploadInfoResp MakeReadOnly()
		{
			return this;
		}
		public static EmojiUploadInfoResp.Builder CreateBuilder()
		{
			return new EmojiUploadInfoResp.Builder();
		}
		public override EmojiUploadInfoResp.Builder ToBuilder()
		{
			return EmojiUploadInfoResp.CreateBuilder(this);
		}
		public override EmojiUploadInfoResp.Builder CreateBuilderForType()
		{
			return new EmojiUploadInfoResp.Builder();
		}
		public static EmojiUploadInfoResp.Builder CreateBuilder(EmojiUploadInfoResp prototype)
		{
			return new EmojiUploadInfoResp.Builder(prototype);
		}
		static EmojiUploadInfoResp()
		{
			EmojiUploadInfoResp.defaultInstance = new EmojiUploadInfoResp().MakeReadOnly();
			EmojiUploadInfoResp._emojiUploadInfoRespFieldNames = new string[]
			{
				"MD5",
				"MsgID",
				"Ret",
				"StartPos",
				"TotalLen"
			};
			EmojiUploadInfoResp._emojiUploadInfoRespFieldTags = new uint[]
			{
				34u,
				40u,
				8u,
				16u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.EmojiUploadInfoResp.Descriptor, null);
		}
	}
}
